package com.example.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 文案表
 * @author: mtl
 * @Date: 2022/1/24 15:46
 * @Description: 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "article")
public class Article implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 图案
     */
    @TableField(value = "pattern_img")
    private String patternImg;

    /**
     * 文章标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 二级标题
     */
    @TableField(value = "secondary_title")
    private String secondaryTitle;

    /**
     * 文章内容
     */
    @TableField(value = "article_body")
    private String articleBody;

    /**
     * 文案分类
     */
    @TableField(value = "article_type")
    private String articleType;

    /**
     * 观看人数
     */
    @TableField(value = "watch")
    private Long watch;

    /**
     * 收藏人数
     */
    @TableField(value = "`collect`")
    private Long collect;

    /**
     * 作者
     */
    @TableField(value = "author")
    private String author;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 审核状态 0待审核 1审核通过 2审核不通过
     */
    @TableField(value = "review_status")
    private Integer reviewStatus;

    /**
     * 逻辑删除状态 0存在 1逻辑删除
     */
    @TableField(value = "delete_state")
    private Integer deleteState;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_PATTERN_IMG = "pattern_img";

    public static final String COL_TITLE = "title";

    public static final String COL_SECONDARY_TITLE = "secondary_title";

    public static final String COL_ARTICLE_BODY = "article_body";

    public static final String COL_ARTICLE_TYPE = "article_type";

    public static final String COL_WATCH = "watch";

    public static final String COL_COLLECT = "collect";

    public static final String COL_AUTHOR = "author";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_REVIEW_STATUS = "review_status";

    public static final String COL_DELETE_STATE = "delete_state";
}